package com.core.cloudcommon.security;

/**
 * @author =====Lqj=====
 * @className SimpleUserInfo
 * @description 简单的用户信息实现，避免循环依赖
 * @create 2024/12/17 10:30
 **/
public class SimpleUserInfo implements UserInfo {
    
    private Long id;
    private String userName;
    private String realName;
    private String phone;
    private String email;
    private Long departId;
    private String departName;
    
    public SimpleUserInfo() {
    }
    
    public SimpleUserInfo(Long id, String userName, String realName, String phone, String email, Long departId, String departName) {
        this.id = id;
        this.userName = userName;
        this.realName = realName;
        this.phone = phone;
        this.email = email;
        this.departId = departId;
        this.departName = departName;
    }
    
    @Override
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Override
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    @Override
    public String getRealName() {
        return realName;
    }
    
    public void setRealName(String realName) {
        this.realName = realName;
    }
    
    @Override
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    @Override
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Override
    public Long getDepartId() {
        return departId;
    }
    
    public void setDepartId(Long departId) {
        this.departId = departId;
    }
    
    @Override
    public String getDepartName() {
        return departName;
    }
    
    public void setDepartName(String departName) {
        this.departName = departName;
    }
    
    @Override
    public String toString() {
        return "SimpleUserInfo{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", realName='" + realName + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", departId=" + departId +
                ", departName='" + departName + '\'' +
                '}';
    }
}
